<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return=array();
if($_RQ['op']=='get'){
	if($_RQ['postdata']){
		$post=get_postdata();
		uni_setting('cash',$post);
		exi('设置成功！');
	}
	$setting=uni_setting('cash');
	$return['item']=$setting;
	$return['htmls']=array(
		'type'=>'edit',
		'edit'=>array(
			array('type'=>'tip','title'=>'<red>提醒：</red>:提现的，需要移步支付参数设置--微信支付--上传证书才行，否则无法提醒到零钱！'),
			array('type'=>'switch','title'=>'是否开启会员余额提现','name'=>'open','help'=>'如果单个会员，单独关闭了提现功能，这里设置无效'),
			array('type'=>'checkbox','title'=>'支持的提现方式','name'=>'withdrawtype','options'=>'withdraw'),
			array('type'=>'unitstring','unit'=>'元','title'=>'最低提现金额','name'=>'min','help'=>'会员申请提现金额必须大于此值'),
			array('type'=>'switch','title'=>'提现是否需要审核','name'=>'check'),
			array('type'=>'unitstring','unit'=>'%','title'=>'提现手续费','name'=>'percent','help'=>'填写手续费费率。例如，填写1表示手续费为1%。提现100元需要手续费1元'),
			array('type'=>'switch','title'=>'提现需是100的倍数？','name'=>'is_ti100'),
			array('name'=>'notice_mid','title'=>'提醒管理员','type'=>'choose','action'=>'core/member.get_member/','help'=>'申请提现后，模板消息提醒管理员！'),
			array('type'=>'unitstring','unit'=>'次','title'=>'提现次数/天','name'=>'max_tinum','help'=>'留空不限制'),
			array('type'=>'text','title'=>'提现说明','name'=>'desc'),
		),
	);
	$return['withdraw']=array('提现到微信钱包','提现到支付宝','提现到银行卡');
	if($this->plugin_exists('jy_huiqi365')){
		$return['withdraw']['api']='接口提现';
	}
	$return['jifencz_type']=array('不支持','支持充值','只支持商家店长充值');
	exi($return);
}
	